From fb6dd9a13061ca956b00f404831d8e993870c136 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 15 Apr 2008 16:04:30 +0100 Subject: [PATCH] ioemu: COW driver flush method should return an int. Signed-off-by: Keir Fraser --- tools/ioemu/block-cow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ioemu/block-cow.c b/tools/ioemu/block-cow.c index 07c8a7bf16..eeee9a1cc4 100644 --- a/tools/ioemu/block-cow.c +++ b/tools/ioemu/block-cow.c @@ -246,10 +246,11 @@ static int cow_create(const char *filename, int64_t image_sectors, return 0; } -static void cow_flush(BlockDriverState *bs) +static int cow_flush(BlockDriverState *bs) { BDRVCowState *s = bs->opaque; fsync(s->fd); + return 0; } BlockDriver bdrv_cow = { -- 2.30.2